package com.sihan.framework.etm.vo.business;

import io.swagger.annotations.ApiModel;
import lombok.Data;

@Data
@ApiModel(value="柜子库存种类")
public class DeviceToolTypeVO {

	private String deviceCode;
	
	private String modelId;
	
	private String deviceName;
	
	private String typeModel;
	
	private String toolName;
	
	private Integer comment;

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		DeviceToolTypeVO other = (DeviceToolTypeVO) obj;
		if (deviceCode == null) {
			if (other.deviceCode != null)
				return false;
		} else if (!deviceCode.equals(other.deviceCode))
			return false;
		if (modelId == null) {
			if (other.modelId != null)
				return false;
		} else if (!modelId.equals(other.modelId))
			return false;
		if (toolName == null) {
			if (other.toolName != null)
				return false;
		} else if (!toolName.equals(other.toolName))
			return false;
		if (typeModel == null) {
			return other.typeModel == null;
		} else return typeModel.equals(other.typeModel);
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((deviceCode == null) ? 0 : deviceCode.hashCode());
		result = prime * result + ((modelId == null) ? 0 : modelId.hashCode());
		result = prime * result + ((toolName == null) ? 0 : toolName.hashCode());
		result = prime * result + ((typeModel == null) ? 0 : typeModel.hashCode());
		return result;
	}
	
	
}
